import request from '@/utils/request'

// 添加机台号
export function saveMachine(data) {
  return request({
    data,
    url: '/back/machine/saveMachine',
    method: 'post'
  })
}

// 删除机台信息
export function deleteMachine(data) {
  return request({
    data,
    url: '/back/machine/deleteMachine',
    method: 'post'
  })
}

// 修改机台信息
export function updateMachine(data) {
  return request({
    data,
    url: '/back/machine/updateMachine',
    method: 'post'
  })
}

// 分页获取机台信息
export function machinePage(data) {
  return request({
    data,
    url: '/back/machine/machinePage',
    method: 'post'
  })
}
// 获取机台状态
export function finMachineState(data) {
  return request({
    data,
    url: '/back/machine/finMachineState',
    method: 'post'
  })
}
